<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        img {
            width: 100%;
        }
        p {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 20px;
            height: 20px;
            background: url(./images/close.jpg) no-repeat;
        }
    </style>
</head>
<body>
    <div class="box">
        <img src="./images/luzhou.jpg" alt="">
        <p></p>
    </div>

    <script>
        var box = document.querySelector('.box');
        var img = document.querySelector('img');
        var p = document.querySelector('p');

        p.onclick = function (){
            box.style.display = 'none';
        }
    </script>
</body>
</html>